from django.core.management.base import BaseCommand
from utils.run_task_and_send_alert_msg import RunTaskAndSendAlertMsg


class Command(BaseCommand):
    help = 'Run monitoring scheduler service'

    def handle(self, *args, **options):
        s = RunTaskAndSendAlertMsg()
        s.start()  # 需要添加常驻运行逻辑
